import request from "@/utils/request.js";

//信息页
export function getIndex(data) {
	return request.get("recycling/admin/boxlist",data, {
		noAuth: true
	});
}

//预约派单
export function getChecklist(data) {
	return request.get("recycling/admin/checklist", data);
}

//订单详情
export function orderinfo(id) {
	return request.get(`recycling/admin/orderinfo/${id}`, {},);
}

//我的订单列表
export function orderlist(data) {
	return request.get(`recycling/admin/orderlist`, data);
}

//确认核销接单
export function hexiaoorder(data) {
	return request.post(`recycling/admin/check_order`, data);
}

//确认接单
export function receiving(data) {
	return request.post(`recycling/admin/receiving`, data);
}

//添加编辑回收箱
export function savebox(data) {
	return request.post(`recycling/admin/savebox/${data.id}`, data);
}

//清空回收箱
export function clearbox(data) {
	return request.post(`recycling/admin/clearbox`, data);
}

//回收箱详情
export function boxinfo(id) {
	return request.get(`recycling/admin/boxinfo/${id}`,);
}